package com.huatai.paas.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huatai.paas.dto.ProjectManagement;
import com.huatai.paas.dto.QueryProjectManagementDto;
import com.huatai.paas.dto.info.QueryProjectManagementInfo;
import com.huatai.paas.entity.ServerInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProjectManagementMapper extends BaseMapper<ProjectManagement> {

	IPage<QueryProjectManagementInfo> queryProjectManageList(@Param("page") Page<QueryProjectManagementInfo> page,
															@Param("status") String status,
															@Param("itemName") String itemName,
															@Param("departmentList") List<Long> departmentList,
															@Param("userId") Long userId);

	List<Long> queryDepartmentList(@Param("departmentIds") List<Long> departmentIds);

	QueryProjectManagementInfo queryItemDispositionInfo(@Param("id") Long id);

    ServerInfo getServerInfoById(@Param("serverId") Long serverId);
}
